<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>用户评价</title>
<link href="images/css.css"  rel="stylesheet" type="text/css" />
<style type="text/css">
#menu { width:70px; height:6px; margin:0 auto; }
#menu ul { list-style: none; margin: 0px; padding: 0px; }
#menu ul li { float:left; margin-left:2px;}
#menu ul li a { display:block; width:60px; height:6px;  text-align:center; font-size:12px;}
#menu ul li a:hover { }
#menu ul li a#current {  font-weight:bold; color:#fff;}
#menu ul li ul { border:1px solid #ccc; display:none; position:absolute;z-index: -160px; }
#menu ul li ul li { float:none; width:160px; line-height:28px; background:#eee; margin:0;}
#menu ul li ul li a { background:none; width:160px;}
#menu ul li ul li a:hover { background:#333; color:#fff;}
#menu ul li:hover ul { display:block;}
#menu ul li.sfhover ul { display:block;}
</style>
<style type="text/css">
a:link {
	text-decoration: none;
}
a:visited {
	text-decoration: none;
}
a:hover {
	text-decoration: none;
}
a:active {
	text-decoration: none;
}

</style>
<script type="text/javascript"> 
	 //转至多少页码
	 function changePage(listId)
	 {
	  document.location.href="comment!lisComment.action?typeId=1&&pageNo="+listId;
	 } 
</script>
</head>
<body style="margin:0px; text-align:center;" bgcolor="#F1F1F1" >
<!--顶部-->
<s:action name="showTop" executeResult="true" />
<table width="100%" height="18" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td height="18">&nbsp;</td>
  </tr>
</table>
<table width="990" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="177" height="100%" valign="top">
	<!--左边-->
	<%@include file="about_left.jsp"%>
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><img src="images/line4.jpg" width="5" height="14" /></td>
        </tr>
      </table>
      </td>
    <td width="19">&nbsp;</td>
    <td width="794" valign="top" height="100%">
      <table width="789" height="539" border="0" cellpadding="0" cellspacing="0" bgcolor="#F1F1F1">
  <tr>
    <td width="789" height="39" align="left" valign="middle"><span class="STYLE1">&nbsp;关于易彩通 &gt; 用户评价</span></td>
  </tr>
  <tr>
    <td height="500" align="center" valign="top" bgcolor="#FFFFFF" style="border:1px solid #C5C5C5; padding:1px ;"><table width="100%" height="32" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td width="1%" height="32" background="images/sp_bg.jpg">&nbsp;</td>
        <td width="3%" align="center" background="images/sp_bg.jpg" style="border-bottom:1px solid #C5C5C5;"><img src="images/dian.jpg" width="10" height="16" /></td>
        <td width="95%" align="left" background="images/sp_bg.jpg" style="border-bottom:1px solid #C5C5C5;"><span class="STYLE3">用户评价</span></td>
        <td width="1%" background="images/sp_bg.jpg">&nbsp;</td>
      </tr>
    </table>
      <s:iterator value="pageObj.data" var="userCom" status="st">
     <!--循环-->
      <table width="767" height="97" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td width="94" height="97" align="center" style="border:1px solid #DBDBD">
          <s:if test="#userCom.ico==''"> <img src="images/rwlz.jpg" width="66" height="78"></s:if>
          <s:else>  <img src="<%=basePath%>upload/usercoment_pic/${userCom.ico}" width="66" height="78"></s:else>
          </td>
          <td width="661" align="center"><table width="648" height="97" border="0" cellpadding="0" cellspacing="0">
            <tr>
              <td width="637" height="26"><strong>${userCom.title}</strong> &nbsp;&nbsp;&nbsp;<a href="comment!detailUserComent.action?typeId=1&&detailId=${userCom.id}" >详细</a></td>
            </tr>
            <tr>
              <td height="23">姓名：${userCom.userName}&nbsp;&nbsp;&nbsp;所属公司：${userCom.company}&nbsp;&nbsp;&nbsp;发布时间：<s:date name="#userCom.commentTime" format="yyyy-MM-dd  HH:mm:ss"/></td>
            </tr>
            <tr>
              <td height="48" style="line-height:20px;">  <div style="width:600px; white-space:nowrap;overflow:hidden;text-overflow:ellipsis;">${userCom.content}</div></td>
            </tr>
          </table></td>
        </tr>
      </table>
     </s:iterator>
	  <s:if test="pageObj.totalRecord>10">
      <table width="770" height="39" border="0" cellpadding="0" cellspacing="0" style="border-top:1px solid;">
        <tr>
          <td width="770" align="right"><a href="comment!lisComment.action?typeId=1&&pageNo=1">首页</a>&nbsp;
		   <s:if test="pageObj.hasPrePage==false" >上一页</s:if>
            <s:else> <a href="comment!lisComment.action?typeId=1&&pageNo=<s:property value="pageObj.pageNo-1"/>">上一页</a></s:else>
   
		  &nbsp;<s:if test="pageObj.hasNextPage==false">下一页</s:if>
              <s:else> <a href="comment!lisComment.action?typeId=1&&pageNo=<s:property value="pageObj.pageNo+1"/>" >下一页</a></s:else>
			  
		  &nbsp;<s:if test="pageObj.pageNo==pageObj.totalPage">末页</s:if>
		  <s:else><a href="comment!lisComment.action?typeId=1&&pageNo=<s:property value="pageObj.totalPage"/>" >末页</a></s:else>
		  
		  &nbsp;&nbsp;第${pageObj.pageNo}页&nbsp;|&nbsp;共${pageObj.totalPage}页&nbsp;|&nbsp;共${pageObj.totalRecord}条&nbsp;&nbsp;转至&nbsp;
            <s:select list="pageObj.listNum" onchange="changePage(this.value)" id="pageNo" name="pageNo">
            </s:select>
          &nbsp;</td>
        </tr>
      </table>
	 </s:if>  
	 <!--分页-->
   </td>
  </tr>
</table>
      </td>
  </tr>

</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><img src="images/line4.jpg" width="5" height="14" /></td>
  </tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="32">&nbsp;</td>
  </tr>
</table>
<!--底部-->
<s:action name="showComment" executeResult="true" />
<%@include file="foot_end.jsp"%>
</body>
</html>
